lxsession-0.5.5^20240821git95e902d7-1.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-569): [#def1]
/usr/bin/lxlock:34:11: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
#   32|       slock &
#   33|   elif which xlock >/dev/null 2>&1; then
#   34|->     xlock $*
#   35|   elif which i3lock >/dev/null 2>&1; then
#   36|       i3lock

Error: SHELLCHECK_WARNING (CWE-569): [#def2]
/usr/bin/lxsession-default:25:8: error[SC1035]: You need a space after the [ and before the ].
#   23|   case "$1" in
#   24|   "audio")
#   25|->     if ["$2" = "preferences"  ]
#   26|       then
#   27|   	    echo "Launching audio preferences"

Error: COMPILER_WARNING (CWE-477): [#def3]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxclipboard/clipboard.c: scope_hint: In function ‘gsd_clipboard_manager_class_init’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxclipboard/clipboard.c:142:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#  140|           object_class->finalize = gsd_clipboard_manager_finalize;
#  141|   
#  142|->         g_type_class_add_private (klass, sizeof (GsdClipboardManagerPrivate));
#  143|   }
#  144|   

Error: COMPILER_WARNING: [#def4]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxclipboard/clipboard.c: scope_hint: In function ‘gsd_clipboard_manager_init’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxclipboard/clipboard.c:150:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  150 |                                                      GsdClipboardManagerPrivate);
#      |             ^                                        ~~~~~~~~~~~~~~~~~~~~~~~~
#  148|           manager->priv = G_TYPE_INSTANCE_GET_PRIVATE (manager,
#  149|                                                        GSD_TYPE_CLIPBOARD_MANAGER,
#  150|->                                                      GsdClipboardManagerPrivate);
#  151|   
#  152|           manager->priv->display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxclipboard/clipboard.c: scope_hint: In function ‘convert_clipboard’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxclipboard/clipboard.c:691:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘conversions’
#  689|           g_slist_foreach (conversions, (GFunc) convert_clipboard_target, manager);
#  690|   
#  691|->         if (conversions->next == NULL &&
#  692|               ((IncrConversion *) conversions->data)->property == None) {
#  693|                   finish_selection_request (manager, xev, False);

Error: COMPILER_WARNING (CWE-563): [#def6]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxclipboard/main.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxclipboard/main.c:63:20: warning[-Wunused-variable]: ‘lxsession_main_properties’ defined but not used
#   63 | static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
#   61|   	LXSESSION_MAIN_NUM_PROPERTIES
#   62|   };
#   63|-> static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
#   64|   #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#   65|   #define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))

Error: COMPILER_WARNING (CWE-477): [#def7]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxclipboard/main.vala: scope_hint: In function ‘lxsession_main_main’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxclipboard/main.vala:28:2: warning[-Wdeprecated-declarations]: ‘G_APPLICATION_FLAGS_NONE’ is deprecated: Use 'G_APPLICATION_DEFAULT_FLAGS' instead
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30: included_from: Included from here.
/usr/include/gtk-2.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-2.0/gtk/gtk.h:32: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:1545:3: note: declared here
#   26|           {
#   27|               Gtk.init (ref args);
#   28|->             GLib.Application app = new GLib.Application (
#   29|                   "org.lxde.lxclipboard",
#   30|                   GLib.ApplicationFlags.FLAGS_NONE);

Error: COMPILER_WARNING (CWE-477): [#def8]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit-listener.c: scope_hint: In function ‘on_completed’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit-listener.c:97:5: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
#   97 |     g_simple_async_result_complete(data->result);
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here.
/usr/include/polkit-1/polkit/polkitactiondescription.h:30: included_from: Included from here.
/usr/include/polkit-1/polkit/polkit.h:30: included_from: Included from here.
/usr/include/polkit-1/polkitagent/polkitagentlistener.h:29: included_from: Included from here.
/usr/include/polkit-1/polkitagent/polkitagent.h:32: included_from: Included from here.
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
#  101 | void                g_simple_async_result_complete         (GSimpleAsyncResult      *simple);
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   95|           return;
#   96|       }
#   97|->     g_simple_async_result_complete(data->result);
#   98|       dlg_data_free(data);
#   99|   }

Error: COMPILER_WARNING (CWE-563): [#def9]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit-listener.c:187:29: warning[-Wunused-but-set-variable]: variable ‘detail’ set but not used
#  187 |     GtkWidget *icon, *msg, *detail, *id_hbox;
#      |                             ^~~~~~
#  185|   {
#  186|       GtkBuilder* b = gtk_builder_new();
#  187|->     GtkWidget *icon, *msg, *detail, *id_hbox;
#  188|       GList* l;
#  189|       DlgData* data = g_slice_new0(DlgData);

Error: COMPILER_WARNING (CWE-477): [#def10]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit-listener.c: scope_hint: In function ‘initiate_authentication’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit-listener.c:198:5: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
#  198 |     data->result = g_simple_async_result_new(G_OBJECT(listener), callback, user_data, initiate_authentication);
#      |     ^~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
#   48 | GSimpleAsyncResult *g_simple_async_result_new              (GObject                 *source_object,
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~
#  196|   #endif
#  197|       data->listener = (LXPolkitListener*)listener;
#  198|->     data->result = g_simple_async_result_new(G_OBJECT(listener), callback, user_data, initiate_authentication);
#  199|   
#  200|       data->action_id = g_strdup(action_id);

Error: COMPILER_WARNING (CWE-563): [#def11]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit-listener.c:242:19: warning[-Wunused-variable]: unused variable ‘name’
#  242 |             char* name;
#      |                   ^~~~
#  240|           {
#  241|               PolkitIdentity* id = (PolkitIdentity*)l->data;
#  242|->             char* name;
#  243|               if(POLKIT_IS_UNIX_USER(id))
#  244|               {

Error: COMPILER_WARNING (CWE-477): [#def12]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit-listener.c:272:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
#  272 |         g_simple_async_result_complete_in_idle(data->result);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
#  103 | void                g_simple_async_result_complete_in_idle (GSimpleAsyncResult      *simple);
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  270|           DEBUG("no identities list, is this an error?");
#  271|           gtk_widget_hide(id_hbox);
#  272|->         g_simple_async_result_complete_in_idle(data->result);
#  273|           dlg_data_free(data);
#  274|           return;

Error: COMPILER_WARNING (CWE-563): [#def13]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit-listener.c:283:23: warning[-Wunused-variable]: unused variable ‘self’
#  283 |     LXPolkitListener* self = (LXPolkitListener*)listener;
#      |                       ^~~~
#  281|                                                 GError              **error)
#  282|   {
#  283|->     LXPolkitListener* self = (LXPolkitListener*)listener;
#  284|       DEBUG("init_authentication_finish");
#  285|       return !g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(res), error);

Error: COMPILER_WARNING (CWE-477): [#def14]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit-listener.c: scope_hint: In function ‘initiate_authentication_finish’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit-listener.c:285:5: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated
#  285 |     return !g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(res), error);
#      |     ^~~~~~
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
#  116 | gboolean            g_simple_async_result_propagate_error  (GSimpleAsyncResult      *simple,
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  283|       LXPolkitListener* self = (LXPolkitListener*)listener;
#  284|       DEBUG("init_authentication_finish");
#  285|->     return !g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(res), error);
#  286|   }
#  287|   

Error: COMPILER_WARNING (CWE-563): [#def15]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit-listener.c: scope_hint: In function ‘lxpolkit_listener_finalize’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit-listener.c:303:23: warning[-Wunused-but-set-variable]: variable ‘self’ set but not used
#  303 |     LXPolkitListener *self;
#      |                       ^~~~
#  301|   static void lxpolkit_listener_finalize(GObject *object)
#  302|   {
#  303|->     LXPolkitListener *self;
#  304|   
#  305|       g_return_if_fail(object != NULL);

Error: COMPILER_WARNING (CWE-1023): [#def16]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit.c:41:5: warning[-Wswitch]: enumeration value ‘GTK_MESSAGE_OTHER’ not handled in switch
#   39|                                               GTK_BUTTONS_OK, "%s", msg);
#   40|       const char* title = NULL;
#   41|->     switch(type)
#   42|       {
#   43|       case GTK_MESSAGE_ERROR:

Error: COMPILER_WARNING (CWE-1023): [#def17]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit.c:41:5: warning[-Wswitch]: enumeration value ‘GTK_MESSAGE_QUESTION’ not handled in switch
#   39|                                               GTK_BUTTONS_OK, "%s", msg);
#   40|       const char* title = NULL;
#   41|->     switch(type)
#   42|       {
#   43|       case GTK_MESSAGE_ERROR:

Error: COMPILER_WARNING (CWE-1023): [#def18]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit.c: scope_hint: In function ‘show_msg’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit.c:41:5: warning[-Wswitch]: enumeration value ‘GTK_MESSAGE_WARNING’ not handled in switch
#   41 |     switch(type)
#      |     ^~~~~~
#   39|                                               GTK_BUTTONS_OK, "%s", msg);
#   40|       const char* title = NULL;
#   41|->     switch(type)
#   42|       {
#   43|       case GTK_MESSAGE_ERROR:

Error: COMPILER_WARNING (CWE-477): [#def19]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit.c: scope_hint: In function ‘policykit_agent_init’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/lxpolkit.c:69:5: warning[-Wdeprecated-declarations]: ‘polkit_agent_register_listener’ is deprecated: Use polkit_agent_listener_register instead
#   69 |     if(!polkit_agent_register_listener(listener, session, NULL, &err))
#      |     ^~
/usr/include/polkit-1/polkitagent/polkitagent.h:32: included_from: Included from here.
/usr/include/polkit-1/polkitagent/polkitagentlistener.h:112:11: note: declared here
#  112 | gboolean  polkit_agent_register_listener                        (PolkitAgentListener      *listener,
#      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   67|           return 1;
#   68|       }
#   69|->     if(!polkit_agent_register_listener(listener, session, NULL, &err))
#   70|       {
#   71|           /* show error msg */

Error: COMPILER_WARNING (CWE-563): [#def20]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/main.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/main.c:65:20: warning[-Wunused-variable]: ‘lxsession_main_properties’ defined but not used
#   65 | static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
#   63|   	LXSESSION_MAIN_NUM_PROPERTIES
#   64|   };
#   65|-> static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
#   66|   #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#   67|   #define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))

Error: COMPILER_WARNING (CWE-477): [#def21]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/main.vala: scope_hint: In function ‘lxsession_main_main’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxpolkit/main.vala:33:2: warning[-Wdeprecated-declarations]: ‘G_APPLICATION_FLAGS_NONE’ is deprecated: Use 'G_APPLICATION_DEFAULT_FLAGS' instead
#   33 |             GLib.Application app = new GLib.Application (
#      |  ^     
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30: included_from: Included from here.
/usr/include/gtk-2.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-2.0/gtk/gtk.h:32: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:1545:3: note: declared here
# 1545 |   G_APPLICATION_FLAGS_NONE GIO_DEPRECATED_ENUMERATOR_IN_2_74_FOR(G_APPLICATION_DEFAULT_FLAGS),
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
#   31|   
#   32|               Gtk.init (ref args);
#   33|->             GLib.Application app = new GLib.Application (
#   34|                   "org.lxde.lxpolkit",
#   35|                   GLib.ApplicationFlags.FLAGS_NONE);

Error: COMPILER_WARNING (CWE-563): [#def22]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-db/desktop-files-backend.c:61:20: warning[-Wunused-variable]: ‘lxsession_db_default_apps_properties’ defined but not used
#   61 | static GParamSpec* lxsession_db_default_apps_properties[LXSESSION_DB_DEFAULT_APPS_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   59|   	LXSESSION_DB_DEFAULT_APPS_NUM_PROPERTIES
#   60|   };
#   61|-> static GParamSpec* lxsession_db_default_apps_properties[LXSESSION_DB_DEFAULT_APPS_NUM_PROPERTIES];
#   62|   #define _g_free0(var) (var = (g_free (var), NULL))
#   63|   #define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))

Error: COMPILER_WARNING (CWE-563): [#def23]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-db/main.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-db/main.c:71:20: warning[-Wunused-variable]: ‘lxsession_main_properties’ defined but not used
#   71 | static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
#   69|   	LXSESSION_MAIN_NUM_PROPERTIES
#   70|   };
#   71|-> static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
#   72|   #define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
#   73|   #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

Error: COMPILER_WARNING (CWE-843): [#def24]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/autostart.vala: scope_hint: In function ‘ldefault_apps_get_config_path’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/autostart.vala:296:19: warning[-Wincompatible-pointer-types]: assignment to ‘gchar **’ {aka ‘char **’} from incompatible pointer type ‘const gchar * const*’ {aka ‘const char * const*’}
#  294|           else
#  295|           {
#  296|->             string[] system_config_dirs = Environment.get_system_config_dirs ();
#  297|               string config_system_location = null;
#  298|               string path_system_config_file = null;

Error: COMPILER_WARNING (CWE-704): [#def25]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_combo_item_object_set_name’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala:356:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  356 |         public string name { get; set;}
#      |            ^
#  354|       public class ComboItemObject: GLib.Object
#  355|       {
#  356|->         public string name { get; set;}
#  357|           public string exec { get; set;}
#  358|           public Gtk.Image icon { get; set;}

Error: COMPILER_WARNING (CWE-704): [#def26]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_combo_item_object_set_exec’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala:357:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  357 |         public string exec { get; set;}
#      |            ^
#  355|       {
#  356|           public string name { get; set;}
#  357|->         public string exec { get; set;}
#  358|           public Gtk.Image icon { get; set;}
#  359|           public string icon_name { get; set;}

Error: COMPILER_WARNING (CWE-704): [#def27]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_combo_item_object_set_icon_name’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala:359:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  359 |         public string icon_name { get; set;}
#      |            ^
#  357|           public string exec { get; set;}
#  358|           public Gtk.Image icon { get; set;}
#  359|->         public string icon_name { get; set;}
#  360|           public string desktop_path { get; set;}
#  361|           public string install_package { get; set;}

Error: COMPILER_WARNING (CWE-704): [#def28]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_combo_item_object_set_desktop_path’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala:360:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  360 |         public string desktop_path { get; set;}
#      |            ^
#  358|           public Gtk.Image icon { get; set;}
#  359|           public string icon_name { get; set;}
#  360|->         public string desktop_path { get; set;}
#  361|           public string install_package { get; set;}
#  362|   

Error: COMPILER_WARNING (CWE-704): [#def29]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_combo_item_object_set_install_package’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala:361:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  361 |         public string install_package { get; set;}
#      |            ^
#  359|           public string icon_name { get; set;}
#  360|           public string desktop_path { get; set;}
#  361|->         public string install_package { get; set;}
#  362|   
#  363|           public string[] tmp_item_array;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_create_mime_associate_window’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala:573:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala:537:2: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib.h:82: included_from: Included from here.
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala:537:13: note: in expansion of macro ‘g_slice_new0’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala:543:6: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala:690:2: note: in expansion of macro ‘g_return_val_if_fail’
combobox.c: scope_hint: In function ‘ldefault_apps_create_mime_associate_window’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_create_mime_associate_window’
#  571|           for (int b = 0 ; b < mime_combobox_list.length ; b++)
#  572|           {
#  573|->             string item_list = mime_combobox_list[b];
#  574|               ComboItemObject combo_item = new ComboItemObject (item_list);
#  575|               message("combo_item.desktop_path: %s", combo_item.desktop_path);

Error: COMPILER_WARNING (CWE-563): [#def31]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/dbus-backend.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/dbus-backend.c:72:20: warning[-Wunused-variable]: ‘ldefault_apps_dbus_backend_properties’ defined but not used
#   72 | static GParamSpec* ldefault_apps_dbus_backend_properties[LDEFAULT_APPS_DBUS_BACKEND_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70|   	LDEFAULT_APPS_DBUS_BACKEND_NUM_PROPERTIES
#   71|   };
#   72|-> static GParamSpec* ldefault_apps_dbus_backend_properties[LDEFAULT_APPS_DBUS_BACKEND_NUM_PROPERTIES];
#   73|   #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#   74|   #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

Error: COMPILER_WARNING (CWE-563): [#def32]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/main.c:68:20: warning[-Wunused-variable]: ‘ldefault_apps_update_windows_properties’ defined but not used
#   68 | static GParamSpec* ldefault_apps_update_windows_properties[LDEFAULT_APPS_UPDATE_WINDOWS_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   66|   	LDEFAULT_APPS_UPDATE_WINDOWS_NUM_PROPERTIES
#   67|   };
#   68|-> static GParamSpec* ldefault_apps_update_windows_properties[LDEFAULT_APPS_UPDATE_WINDOWS_NUM_PROPERTIES];
#   69|   #define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
#   70|   #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

Error: COMPILER_WARNING (CWE-563): [#def33]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/main.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/main.c:88:20: warning[-Wunused-variable]: ‘ldefault_apps_main_windows_properties’ defined but not used
#   88 | static GParamSpec* ldefault_apps_main_windows_properties[LDEFAULT_APPS_MAIN_WINDOWS_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   86|   	LDEFAULT_APPS_MAIN_WINDOWS_NUM_PROPERTIES
#   87|   };
#   88|-> static GParamSpec* ldefault_apps_main_windows_properties[LDEFAULT_APPS_MAIN_WINDOWS_NUM_PROPERTIES];
#   89|   
#   90|   #define LDEFAULT_APPS_TYPE_DBUS_BACKEND (ldefault_apps_dbus_backend_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def34]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/utils.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-default-apps/utils.c:60:20: warning[-Wunused-variable]: ‘ldefault_apps_ldefault_apps_signals_properties’ defined but not used
#   60 | static GParamSpec* ldefault_apps_ldefault_apps_signals_properties[LDEFAULT_APPS_LDEFAULT_APPS_SIGNALS_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   58|   	LDEFAULT_APPS_LDEFAULT_APPS_SIGNALS_NUM_PROPERTIES
#   59|   };
#   60|-> static GParamSpec* ldefault_apps_ldefault_apps_signals_properties[LDEFAULT_APPS_LDEFAULT_APPS_SIGNALS_NUM_PROPERTIES];
#   61|   enum  {
#   62|   	LDEFAULT_APPS_LDEFAULT_APPS_SIGNALS_UPDATE_UI_SIGNAL,

Error: COMPILER_WARNING (CWE-569): [#def35]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-edit/lxsession-edit-common.c: scope_hint: In function ‘get_autostart_files_in_dir’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-edit/lxsession-edit-common.c:126:16: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
#  126 |         while( name = g_dir_read_name(dir) )
#      |                ^~~~
#  124|           const char *name;
#  125|   
#  126|->         while( name = g_dir_read_name(dir) )
#  127|           {
#  128|               if(g_str_has_suffix(name, ".desktop"))

Error: GCC_ANALYZER_WARNING (CWE-688): [#def36]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-edit/lxsession-edit-common.c: scope_hint: In function ‘update_enable_state’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-edit/lxsession-edit-common.c:216:21: warning[-Wanalyzer-null-argument]: use of NULL ‘session_name’ where non-null expected
/usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
#  214|               for( i = 0; i < n; ++i )
#  215|               {
#  216|->                 if( strcmp(list[i], session_name) == 0 )
#  217|                   {
#  218|                       g_free(list[i]);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def37]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-edit/lxsession-edit-common.c:259:21: warning[-Wanalyzer-null-argument]: use of NULL ‘session_name’ where non-null expected
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
#  257|               for( i = 0; i < n; ++i )
#  258|               {
#  259|->                 if( strcmp(list[i], session_name) == 0 )
#  260|                   {
#  261|                       g_free(list[i]);

Error: COMPILER_WARNING (CWE-483): [#def38]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c: scope_hint: In function ‘shutdown_clicked’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c:238:10: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
#  238 |     else if (handler_context->shutdown_systemd)
#      |          ^~
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c:241:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
#  241 |         if (err)
#      |         ^~
#  236|       else if (handler_context->shutdown_ConsoleKit)
#  237|           dbus_ConsoleKit_PowerOff(&err);
#  238|->     else if (handler_context->shutdown_systemd)
#  239|           dbus_systemd_PowerOff(&err);
#  240|   

Error: COMPILER_WARNING (CWE-483): [#def39]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c: scope_hint: In function ‘reboot_clicked’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c:268:10: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
#  268 |     else if (handler_context->reboot_systemd)
#      |          ^~
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c:271:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
#  271 |         if (err)
#      |         ^~
#  266|       else if (handler_context->reboot_ConsoleKit)
#  267|           dbus_ConsoleKit_Reboot(&err);
#  268|->     else if (handler_context->reboot_systemd)
#  269|           dbus_systemd_Reboot(&err);
#  270|   

Error: COMPILER_WARNING (CWE-483): [#def40]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c: scope_hint: In function ‘suspend_clicked’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c:293:10: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
#  293 |     else if (handler_context->suspend_systemd)
#      |          ^~
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c:296:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
#  296 |         if (err)
#      |         ^~
#  291|       else if (handler_context->suspend_ConsoleKit)
#  292|           dbus_ConsoleKit_Suspend(&err);
#  293|->     else if (handler_context->suspend_systemd)
#  294|           dbus_systemd_Suspend(&err);
#  295|   

Error: COMPILER_WARNING (CWE-483): [#def41]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c: scope_hint: In function ‘hibernate_clicked’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c:318:10: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
#  318 |     else if (handler_context->hibernate_systemd)
#      |          ^~
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c:321:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
#  321 |         if (err)
#      |         ^~
#  316|       else if (handler_context->hibernate_ConsoleKit)
#  317|           dbus_ConsoleKit_Hibernate(&err);
#  318|->     else if (handler_context->hibernate_systemd)
#  319|           dbus_systemd_Hibernate(&err);
#  320|   

Error: COMPILER_WARNING (CWE-483): [#def42]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c: scope_hint: In function ‘switch_user_clicked’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c:345:10: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
#  345 |     else if(handler_context->switch_user_LXDM)
#      |          ^~
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession-logout/lxsession-logout.c:348:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
#  348 |         if (err)
#      |         ^~
#  343|       else if (handler_context->switch_user_LIGHTDM)
#  344|           dbus_Lightdm_SwitchToGreeter(&err);
#  345|->     else if(handler_context->switch_user_LXDM)
#  346|           g_spawn_command_line_sync("lxdm-binary -c USER_SWITCH", NULL, NULL, NULL, NULL);
#  347|   

Error: COMPILER_WARNING (CWE-563): [#def43]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:97:20: warning[-Wunused-variable]: ‘lxsession_simple_app_object_properties’ defined but not used
#   97 | static GParamSpec* lxsession_simple_app_object_properties[LXSESSION_SIMPLE_APP_OBJECT_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   95|   	LXSESSION_SIMPLE_APP_OBJECT_NUM_PROPERTIES
#   96|   };
#   97|-> static GParamSpec* lxsession_simple_app_object_properties[LXSESSION_SIMPLE_APP_OBJECT_NUM_PROPERTIES];
#   98|   
#   99|   #define LXSESSION_TYPE_GENERIC_APP_OBJECT (lxsession_generic_app_object_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def44]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:113:20: warning[-Wunused-variable]: ‘lxsession_generic_app_object_properties’ defined but not used
#  113 | static GParamSpec* lxsession_generic_app_object_properties[LXSESSION_GENERIC_APP_OBJECT_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  111|   	LXSESSION_GENERIC_APP_OBJECT_NUM_PROPERTIES
#  112|   };
#  113|-> static GParamSpec* lxsession_generic_app_object_properties[LXSESSION_GENERIC_APP_OBJECT_NUM_PROPERTIES];
#  114|   
#  115|   #define LXSESSION_TYPE_APP_TYPE (lxsession_app_type_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def45]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:149:20: warning[-Wunused-variable]: ‘lxsession_windows_manager_app_properties’ defined but not used
#  149 | static GParamSpec* lxsession_windows_manager_app_properties[LXSESSION_WINDOWS_MANAGER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  147|   	LXSESSION_WINDOWS_MANAGER_APP_NUM_PROPERTIES
#  148|   };
#  149|-> static GParamSpec* lxsession_windows_manager_app_properties[LXSESSION_WINDOWS_MANAGER_APP_NUM_PROPERTIES];
#  150|   
#  151|   #define LXSESSION_TYPE_LXSESSION_CONFIG (lxsession_lxsession_config_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def46]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:186:20: warning[-Wunused-variable]: ‘lxsession_panel_app_properties’ defined but not used
#  186 | static GParamSpec* lxsession_panel_app_properties[LXSESSION_PANEL_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  184|   	LXSESSION_PANEL_APP_NUM_PROPERTIES
#  185|   };
#  186|-> static GParamSpec* lxsession_panel_app_properties[LXSESSION_PANEL_APP_NUM_PROPERTIES];
#  187|   
#  188|   #define LXSESSION_TYPE_DOCK_APP (lxsession_dock_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def47]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:202:20: warning[-Wunused-variable]: ‘lxsession_dock_app_properties’ defined but not used
#  202 | static GParamSpec* lxsession_dock_app_properties[LXSESSION_DOCK_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  200|   	LXSESSION_DOCK_APP_NUM_PROPERTIES
#  201|   };
#  202|-> static GParamSpec* lxsession_dock_app_properties[LXSESSION_DOCK_APP_NUM_PROPERTIES];
#  203|   
#  204|   #define LXSESSION_TYPE_SCREENSAVER_APP (lxsession_screensaver_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def48]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:218:20: warning[-Wunused-variable]: ‘lxsession_screensaver_app_properties’ defined but not used
#  218 | static GParamSpec* lxsession_screensaver_app_properties[LXSESSION_SCREENSAVER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  216|   	LXSESSION_SCREENSAVER_APP_NUM_PROPERTIES
#  217|   };
#  218|-> static GParamSpec* lxsession_screensaver_app_properties[LXSESSION_SCREENSAVER_APP_NUM_PROPERTIES];
#  219|   
#  220|   #define LXSESSION_TYPE_POWER_MANAGER_APP (lxsession_power_manager_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def49]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:234:20: warning[-Wunused-variable]: ‘lxsession_power_manager_app_properties’ defined but not used
#  234 | static GParamSpec* lxsession_power_manager_app_properties[LXSESSION_POWER_MANAGER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  232|   	LXSESSION_POWER_MANAGER_APP_NUM_PROPERTIES
#  233|   };
#  234|-> static GParamSpec* lxsession_power_manager_app_properties[LXSESSION_POWER_MANAGER_APP_NUM_PROPERTIES];
#  235|   
#  236|   #define LXSESSION_TYPE_FILE_MANAGER_APP (lxsession_file_manager_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def50]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:250:20: warning[-Wunused-variable]: ‘lxsession_file_manager_app_properties’ defined but not used
#  250 | static GParamSpec* lxsession_file_manager_app_properties[LXSESSION_FILE_MANAGER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  248|   	LXSESSION_FILE_MANAGER_APP_NUM_PROPERTIES
#  249|   };
#  250|-> static GParamSpec* lxsession_file_manager_app_properties[LXSESSION_FILE_MANAGER_APP_NUM_PROPERTIES];
#  251|   
#  252|   #define LXSESSION_TYPE_DESKTOP_APP (lxsession_desktop_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def51]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:266:20: warning[-Wunused-variable]: ‘lxsession_desktop_app_properties’ defined but not used
#  266 | static GParamSpec* lxsession_desktop_app_properties[LXSESSION_DESKTOP_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  264|   	LXSESSION_DESKTOP_APP_NUM_PROPERTIES
#  265|   };
#  266|-> static GParamSpec* lxsession_desktop_app_properties[LXSESSION_DESKTOP_APP_NUM_PROPERTIES];
#  267|   #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#  268|   

Error: COMPILER_WARNING (CWE-563): [#def52]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:283:20: warning[-Wunused-variable]: ‘lxsession_polkit_app_properties’ defined but not used
#  283 | static GParamSpec* lxsession_polkit_app_properties[LXSESSION_POLKIT_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  281|   	LXSESSION_POLKIT_APP_NUM_PROPERTIES
#  282|   };
#  283|-> static GParamSpec* lxsession_polkit_app_properties[LXSESSION_POLKIT_APP_NUM_PROPERTIES];
#  284|   
#  285|   #define LXSESSION_TYPE_NETWORK_GUI_APP (lxsession_network_gui_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def53]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:299:20: warning[-Wunused-variable]: ‘lxsession_network_gui_app_properties’ defined but not used
#  299 | static GParamSpec* lxsession_network_gui_app_properties[LXSESSION_NETWORK_GUI_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  297|   	LXSESSION_NETWORK_GUI_APP_NUM_PROPERTIES
#  298|   };
#  299|-> static GParamSpec* lxsession_network_gui_app_properties[LXSESSION_NETWORK_GUI_APP_NUM_PROPERTIES];
#  300|   
#  301|   #define LXSESSION_TYPE_AUDIO_MANAGER_APP (lxsession_audio_manager_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def54]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:315:20: warning[-Wunused-variable]: ‘lxsession_audio_manager_app_properties’ defined but not used
#  315 | static GParamSpec* lxsession_audio_manager_app_properties[LXSESSION_AUDIO_MANAGER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  313|   	LXSESSION_AUDIO_MANAGER_APP_NUM_PROPERTIES
#  314|   };
#  315|-> static GParamSpec* lxsession_audio_manager_app_properties[LXSESSION_AUDIO_MANAGER_APP_NUM_PROPERTIES];
#  316|   
#  317|   #define LXSESSION_TYPE_QUIT_MANAGER_APP (lxsession_quit_manager_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def55]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:331:20: warning[-Wunused-variable]: ‘lxsession_quit_manager_app_properties’ defined but not used
#  331 | static GParamSpec* lxsession_quit_manager_app_properties[LXSESSION_QUIT_MANAGER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  329|   	LXSESSION_QUIT_MANAGER_APP_NUM_PROPERTIES
#  330|   };
#  331|-> static GParamSpec* lxsession_quit_manager_app_properties[LXSESSION_QUIT_MANAGER_APP_NUM_PROPERTIES];
#  332|   
#  333|   #define LXSESSION_TYPE_WORKSPACE_MANAGER_APP (lxsession_workspace_manager_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def56]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:347:20: warning[-Wunused-variable]: ‘lxsession_workspace_manager_app_properties’ defined but not used
#  347 | static GParamSpec* lxsession_workspace_manager_app_properties[LXSESSION_WORKSPACE_MANAGER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  345|   	LXSESSION_WORKSPACE_MANAGER_APP_NUM_PROPERTIES
#  346|   };
#  347|-> static GParamSpec* lxsession_workspace_manager_app_properties[LXSESSION_WORKSPACE_MANAGER_APP_NUM_PROPERTIES];
#  348|   
#  349|   #define LXSESSION_TYPE_LAUNCHER_MANAGER_APP (lxsession_launcher_manager_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def57]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:363:20: warning[-Wunused-variable]: ‘lxsession_launcher_manager_app_properties’ defined but not used
#  363 | static GParamSpec* lxsession_launcher_manager_app_properties[LXSESSION_LAUNCHER_MANAGER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  361|   	LXSESSION_LAUNCHER_MANAGER_APP_NUM_PROPERTIES
#  362|   };
#  363|-> static GParamSpec* lxsession_launcher_manager_app_properties[LXSESSION_LAUNCHER_MANAGER_APP_NUM_PROPERTIES];
#  364|   
#  365|   #define LXSESSION_TYPE_TERMINAL_MANAGER_APP (lxsession_terminal_manager_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def58]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:379:20: warning[-Wunused-variable]: ‘lxsession_terminal_manager_app_properties’ defined but not used
#  379 | static GParamSpec* lxsession_terminal_manager_app_properties[LXSESSION_TERMINAL_MANAGER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  377|   	LXSESSION_TERMINAL_MANAGER_APP_NUM_PROPERTIES
#  378|   };
#  379|-> static GParamSpec* lxsession_terminal_manager_app_properties[LXSESSION_TERMINAL_MANAGER_APP_NUM_PROPERTIES];
#  380|   
#  381|   #define LXSESSION_TYPE_PROXY_MANAGER_APP (lxsession_proxy_manager_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def59]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:395:20: warning[-Wunused-variable]: ‘lxsession_proxy_manager_app_properties’ defined but not used
#  395 | static GParamSpec* lxsession_proxy_manager_app_properties[LXSESSION_PROXY_MANAGER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  393|   	LXSESSION_PROXY_MANAGER_APP_NUM_PROPERTIES
#  394|   };
#  395|-> static GParamSpec* lxsession_proxy_manager_app_properties[LXSESSION_PROXY_MANAGER_APP_NUM_PROPERTIES];
#  396|   
#  397|   #define LXSESSION_TYPE_A11Y_APP (lxsession_a11y_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def60]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:411:20: warning[-Wunused-variable]: ‘lxsession_a11y_app_properties’ defined but not used
#  411 | static GParamSpec* lxsession_a11y_app_properties[LXSESSION_A11Y_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  409|   	LXSESSION_A11Y_APP_NUM_PROPERTIES
#  410|   };
#  411|-> static GParamSpec* lxsession_a11y_app_properties[LXSESSION_A11Y_APP_NUM_PROPERTIES];
#  412|   
#  413|   #define LXSESSION_TYPE_XRANDR_APP (lxsession_xrandr_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def61]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:427:20: warning[-Wunused-variable]: ‘lxsession_xrandr_app_properties’ defined but not used
#  427 | static GParamSpec* lxsession_xrandr_app_properties[LXSESSION_XRANDR_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  425|   	LXSESSION_XRANDR_APP_NUM_PROPERTIES
#  426|   };
#  427|-> static GParamSpec* lxsession_xrandr_app_properties[LXSESSION_XRANDR_APP_NUM_PROPERTIES];
#  428|   
#  429|   #define LXSESSION_TYPE_KEYRING_APP (lxsession_keyring_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def62]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:443:20: warning[-Wunused-variable]: ‘lxsession_keyring_app_properties’ defined but not used
#  443 | static GParamSpec* lxsession_keyring_app_properties[LXSESSION_KEYRING_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  441|   	LXSESSION_KEYRING_APP_NUM_PROPERTIES
#  442|   };
#  443|-> static GParamSpec* lxsession_keyring_app_properties[LXSESSION_KEYRING_APP_NUM_PROPERTIES];
#  444|   
#  445|   #define LXSESSION_TYPE_SCREENSHOT_MANAGER_APP (lxsession_screenshot_manager_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def63]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:459:20: warning[-Wunused-variable]: ‘lxsession_screenshot_manager_app_properties’ defined but not used
#  459 | static GParamSpec* lxsession_screenshot_manager_app_properties[LXSESSION_SCREENSHOT_MANAGER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  457|   	LXSESSION_SCREENSHOT_MANAGER_APP_NUM_PROPERTIES
#  458|   };
#  459|-> static GParamSpec* lxsession_screenshot_manager_app_properties[LXSESSION_SCREENSHOT_MANAGER_APP_NUM_PROPERTIES];
#  460|   
#  461|   #define LXSESSION_TYPE_UPDATES_MANAGER_APP (lxsession_updates_manager_app_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def64]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:495:20: warning[-Wunused-variable]: ‘lxsession_updates_manager_app_properties’ defined but not used
#  495 | static GParamSpec* lxsession_updates_manager_app_properties[LXSESSION_UPDATES_MANAGER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  493|   	LXSESSION_UPDATES_MANAGER_APP_NUM_PROPERTIES
#  494|   };
#  495|-> static GParamSpec* lxsession_updates_manager_app_properties[LXSESSION_UPDATES_MANAGER_APP_NUM_PROPERTIES];
#  496|   
#  497|   #define LXSESSION_TYPE_SESSION_OBJECT (lxsession_session_object_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def65]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.c:533:20: warning[-Wunused-variable]: ‘lxsession_crash_manager_app_properties’ defined but not used
#  533 | static GParamSpec* lxsession_crash_manager_app_properties[LXSESSION_CRASH_MANAGER_APP_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  531|   	LXSESSION_CRASH_MANAGER_APP_NUM_PROPERTIES
#  532|   };
#  533|-> static GParamSpec* lxsession_crash_manager_app_properties[LXSESSION_CRASH_MANAGER_APP_NUM_PROPERTIES];
#  534|   #define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#  535|   typedef struct _Block2Data Block2Data;

Error: COMPILER_WARNING (CWE-704): [#def66]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_app_object_set_name’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala:39:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   39 |     public string name { get; set;}
#      |            ^
#   37|       public Pid pid;
#   38|   
#   39|->     public string name { get; set;}
#   40|       public string[] command { get; set;}
#   41|       public bool guard { get; set; default = false;}

Error: COMPILER_WARNING (CWE-704): [#def67]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_app_object_set_application_type’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala:42:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   42 |     public string application_type { get; set;}
#      |            ^
#   40|       public string[] command { get; set;}
#   41|       public bool guard { get; set; default = false;}
#   42|->     public string application_type { get; set;}
#   43|       public int crash_count { get; set; default = 0;}
#   44|   

Error: COMPILER_WARNING (CWE-704): [#def68]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_generic_simple_app_set_settings_command’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala:191:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  191 |     public string settings_command { get; set; default = "";}
#      |            ^
#  189|   public class GenericSimpleApp: SimpleAppObject
#  190|   {
#  191|->     public string settings_command { get; set; default = "";}
#  192|   
#  193|       public GenericSimpleApp (string argument)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def69]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_updates_manager_app_on_apt_update_file_change’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala:1494:14: warning[-Wanalyzer-null-argument]: use of NULL ‘standard_error’ where non-null expected
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala:1407:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:82: included_from: Included from here.
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala:1407:12: note: in expansion of macro ‘g_slice_new0’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala:1416:11: note: in expansion of macro ‘g_strdup’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_updates_manager_app_on_apt_update_file_change’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala:1419:11: note: in expansion of macro ‘g_strdup’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_updates_manager_app_on_apt_update_file_change’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala:1452:6: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib-2.0.vapi:1534:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
glib-2.0.vapi:1534:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala:1493:24: note: in expansion of macro ‘_’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala:1493:14: note: in expansion of macro ‘g_strdup’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_updates_manager_app_on_apt_update_file_change’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/app.vala:1493:4: note: in expansion of macro ‘_g_free0’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1492|                   updates_state = 1;
# 1493|                   error_string =   _("An error occurred, please run Package Manager from the left-click menu or apt-get in a terminal to see what is wrong.");
# 1494|->                 if (standard_error.length > 3)
# 1495|                   {
# 1496|                       notification_text = error_string + "\n" + _("The error message was: ") + standard_error;

Error: COMPILER_WARNING (CWE-563): [#def70]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/autostart.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/autostart.c:64:20: warning[-Wunused-variable]: ‘lxsession_lxsession_autostart_config_properties’ defined but not used
#   64 | static GParamSpec* lxsession_lxsession_autostart_config_properties[LXSESSION_LXSESSION_AUTOSTART_CONFIG_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   62|   	LXSESSION_LXSESSION_AUTOSTART_CONFIG_NUM_PROPERTIES
#   63|   };
#   64|-> static GParamSpec* lxsession_lxsession_autostart_config_properties[LXSESSION_LXSESSION_AUTOSTART_CONFIG_NUM_PROPERTIES];
#   65|   #define _g_array_unref0(var) ((var == NULL) ? NULL : (var = (g_array_unref (var), NULL)))
#   66|   #define _g_free0(var) (var = (g_free (var), NULL))

Error: COMPILER_WARNING (CWE-563): [#def71]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/conffiles.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/conffiles.c:61:20: warning[-Wunused-variable]: ‘lxsession_conffiles_object_properties’ defined but not used
#   61 | static GParamSpec* lxsession_conffiles_object_properties[LXSESSION_CONFFILES_OBJECT_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   59|   	LXSESSION_CONFFILES_OBJECT_NUM_PROPERTIES
#   60|   };
#   61|-> static GParamSpec* lxsession_conffiles_object_properties[LXSESSION_CONFFILES_OBJECT_NUM_PROPERTIES];
#   62|   #define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
#   63|   #define _g_free0(var) (var = (g_free (var), NULL))

Error: COMPILER_WARNING (CWE-563): [#def72]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/control.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/control.c:63:20: warning[-Wunused-variable]: ‘lxsession_control_object_properties’ defined but not used
#   63 | static GParamSpec* lxsession_control_object_properties[LXSESSION_CONTROL_OBJECT_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   61|   	LXSESSION_CONTROL_OBJECT_NUM_PROPERTIES
#   62|   };
#   63|-> static GParamSpec* lxsession_control_object_properties[LXSESSION_CONTROL_OBJECT_NUM_PROPERTIES];
#   64|   #define _g_free0(var) (var = (g_free (var), NULL))
#   65|   

Error: COMPILER_WARNING (CWE-563): [#def73]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/dbus-common.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/dbus-common.c:75:20: warning[-Wunused-variable]: ‘lxsession_session_object_properties’ defined but not used
#   75 | static GParamSpec* lxsession_session_object_properties[LXSESSION_SESSION_OBJECT_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   73|   	LXSESSION_SESSION_OBJECT_NUM_PROPERTIES
#   74|   };
#   75|-> static GParamSpec* lxsession_session_object_properties[LXSESSION_SESSION_OBJECT_NUM_PROPERTIES];
#   76|   #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#   77|   #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

Error: COMPILER_WARNING (CWE-563): [#def74]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/dbus-lxde-session.c:62:20: warning[-Wunused-variable]: ‘lxsession_lxde_session_server_properties’ defined but not used
#   62 | static GParamSpec* lxsession_lxde_session_server_properties[LXSESSION_LXDE_SESSION_SERVER_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   60|   	LXSESSION_LXDE_SESSION_SERVER_NUM_PROPERTIES
#   61|   };
#   62|-> static GParamSpec* lxsession_lxde_session_server_properties[LXSESSION_LXDE_SESSION_SERVER_NUM_PROPERTIES];
#   63|   
#   64|   #define LXSESSION_TYPE_SESSION_OBJECT (lxsession_session_object_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def75]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/environement.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/environement.c:61:20: warning[-Wunused-variable]: ‘lxsession_lxsession_env_properties’ defined but not used
#   61 | static GParamSpec* lxsession_lxsession_env_properties[LXSESSION_LXSESSION_ENV_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   59|   	LXSESSION_LXSESSION_ENV_NUM_PROPERTIES
#   60|   };
#   61|-> static GParamSpec* lxsession_lxsession_env_properties[LXSESSION_LXSESSION_ENV_NUM_PROPERTIES];
#   62|   #define _g_free0(var) (var = (g_free (var), NULL))
#   63|   

Error: COMPILER_WARNING (CWE-563): [#def76]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/main.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/main.c:390:20: warning[-Wunused-variable]: ‘lxsession_main_properties’ defined but not used
#  390 | static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
#  388|   	LXSESSION_MAIN_NUM_PROPERTIES
#  389|   };
#  390|-> static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
#  391|   #define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
#  392|   #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

Error: COMPILER_WARNING (CWE-697): [#def77]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/main.vala: scope_hint: In function ‘lxsession_main_main’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/main.vala:515:285: warning[-Waddress]: the comparison will always evaluate as ‘false’ for the address of ‘____lambda16__gbus_name_acquired_callback’ will never be NULL
#  515 |             Bus.own_name (BusType.SESSION, "org.lxde.SessionManager", BusNameOwnerFlags.NONE,
#      |                                                                                                                                                                                                                                                                                             ^ 
main.c:750:1: note: ‘____lambda16__gbus_name_acquired_callback’ declared here
#  513|           if (global_settings.get_item_string("Dbus", "lxde", null) == "true")
#  514|           {
#  515|->             Bus.own_name (BusType.SESSION, "org.lxde.SessionManager", BusNameOwnerFlags.NONE,
#  516|                             on_bus_aquired,
#  517|                             () => {},

Error: COMPILER_WARNING (CWE-697): [#def78]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/main.vala:515:457: warning[-Waddress]: the comparison will always evaluate as ‘false’ for the address of ‘____lambda17__gbus_name_lost_callback’ will never be NULL
#  515 |             Bus.own_name (BusType.SESSION, "org.lxde.SessionManager", BusNameOwnerFlags.NONE,
#      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^ 
main.c:768:1: note: ‘____lambda17__gbus_name_lost_callback’ declared here
#  513|           if (global_settings.get_item_string("Dbus", "lxde", null) == "true")
#  514|           {
#  515|->             Bus.own_name (BusType.SESSION, "org.lxde.SessionManager", BusNameOwnerFlags.NONE,
#  516|                             on_bus_aquired,
#  517|                             () => {},

Error: COMPILER_WARNING (CWE-697): [#def79]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/main.vala:524:292: warning[-Waddress]: the comparison will always evaluate as ‘false’ for the address of ‘____lambda18__gbus_name_acquired_callback’ will never be NULL
#  524 |             Bus.own_name (BusType.SESSION, "org.gnome.SessionManager", BusNameOwnerFlags.NONE,
#      |                                                                                                                                                                                                                                                                                                    ^ 
main.c:793:1: note: ‘____lambda18__gbus_name_acquired_callback’ declared here
#  522|           {
#  523|   
#  524|->             Bus.own_name (BusType.SESSION, "org.gnome.SessionManager", BusNameOwnerFlags.NONE,
#  525|                             on_gnome_bus_aquired,
#  526|                             () => {},

Error: COMPILER_WARNING (CWE-697): [#def80]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/main.vala:524:464: warning[-Waddress]: the comparison will always evaluate as ‘false’ for the address of ‘____lambda19__gbus_name_lost_callback’ will never be NULL
#  524 |             Bus.own_name (BusType.SESSION, "org.gnome.SessionManager", BusNameOwnerFlags.NONE,
#      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^ 
main.c:811:1: note: ‘____lambda19__gbus_name_lost_callback’ declared here
#  522|           {
#  523|   
#  524|->             Bus.own_name (BusType.SESSION, "org.gnome.SessionManager", BusNameOwnerFlags.NONE,
#  525|                             on_gnome_bus_aquired,
#  526|                             () => {},

Error: COMPILER_WARNING (CWE-563): [#def81]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/notifications.c:63:20: warning[-Wunused-variable]: ‘lxsession_menu_item_object_properties’ defined but not used
#   63 | static GParamSpec* lxsession_menu_item_object_properties[LXSESSION_MENU_ITEM_OBJECT_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   61|   	LXSESSION_MENU_ITEM_OBJECT_NUM_PROPERTIES
#   62|   };
#   63|-> static GParamSpec* lxsession_menu_item_object_properties[LXSESSION_MENU_ITEM_OBJECT_NUM_PROPERTIES];
#   64|   
#   65|   #define LXSESSION_TYPE_MENU_ITEM_GENERIC_OBJECT (lxsession_menu_item_generic_object_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def82]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/notifications.c:91:20: warning[-Wunused-variable]: ‘lxsession_menu_object_properties’ defined but not used
#   91 | static GParamSpec* lxsession_menu_object_properties[LXSESSION_MENU_OBJECT_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   89|   	LXSESSION_MENU_OBJECT_NUM_PROPERTIES
#   90|   };
#   91|-> static GParamSpec* lxsession_menu_object_properties[LXSESSION_MENU_OBJECT_NUM_PROPERTIES];
#   92|   
#   93|   #define LXSESSION_TYPE_MENU_GENERIC_OBJECT (lxsession_menu_generic_object_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def83]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/notifications.c:107:20: warning[-Wunused-variable]: ‘lxsession_menu_generic_object_properties’ defined but not used
#  107 | static GParamSpec* lxsession_menu_generic_object_properties[LXSESSION_MENU_GENERIC_OBJECT_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  105|   	LXSESSION_MENU_GENERIC_OBJECT_NUM_PROPERTIES
#  106|   };
#  107|-> static GParamSpec* lxsession_menu_generic_object_properties[LXSESSION_MENU_GENERIC_OBJECT_NUM_PROPERTIES];
#  108|   typedef void (*LxsessionMenuGenericObjectActionCallback) (gpointer user_data);
#  109|   

Error: COMPILER_WARNING (CWE-563): [#def84]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/notifications.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/notifications.c:124:20: warning[-Wunused-variable]: ‘lxsession_icon_object_properties’ defined but not used
#  124 | static GParamSpec* lxsession_icon_object_properties[LXSESSION_ICON_OBJECT_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  122|   	LXSESSION_ICON_OBJECT_NUM_PROPERTIES
#  123|   };
#  124|-> static GParamSpec* lxsession_icon_object_properties[LXSESSION_ICON_OBJECT_NUM_PROPERTIES];
#  125|   #define _g_free0(var) (var = (g_free (var), NULL))
#  126|   #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

Error: COMPILER_WARNING (CWE-843): [#def85]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/notifications.vala: scope_hint: In function ‘lxsession_icon_object_add_action’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/notifications.vala:196:58: warning[-Wincompatible-pointer-types]: passing argument 4 of ‘notify_notification_add_action’ from incompatible pointer type
/usr/include/libnotify/notify.h:27: included_from: Included from here.
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/notifications.c:29: included_from: Included from here.
/usr/include/libnotify/notification.h:216:85: note: expected ‘NotifyActionCallback’ {aka ‘void (*)(NotifyNotification *, char *, void *)’} but argument is of type ‘void (*)(NotifyNotification *, const gchar *, void *)’ {aka ‘void (*)(NotifyNotification *, const char *, void *)’}
#  194|               if (this.notification != null)
#  195|               {
#  196|->                 this.notification.add_action (action, label, (n, a) => 
#  197|                   {
#  198|                       callback ();

Error: COMPILER_WARNING (CWE-563): [#def86]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.c:62:20: warning[-Wunused-variable]: ‘lxsession_option_properties’ defined but not used
#   62 | static GParamSpec* lxsession_option_properties[LXSESSION_OPTION_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#   60|   	LXSESSION_OPTION_NUM_PROPERTIES
#   61|   };
#   62|-> static GParamSpec* lxsession_option_properties[LXSESSION_OPTION_NUM_PROPERTIES];
#   63|   #define _g_free0(var) (var = (g_free (var), NULL))
#   64|   

Error: COMPILER_WARNING (CWE-563): [#def87]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.c:89:20: warning[-Wunused-variable]: ‘lxsession_keymap_option_properties’ defined but not used
#   89 | static GParamSpec* lxsession_keymap_option_properties[LXSESSION_KEYMAP_OPTION_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   87|   	LXSESSION_KEYMAP_OPTION_NUM_PROPERTIES
#   88|   };
#   89|-> static GParamSpec* lxsession_keymap_option_properties[LXSESSION_KEYMAP_OPTION_NUM_PROPERTIES];
#   90|   #define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
#   91|   

Error: COMPILER_WARNING (CWE-563): [#def88]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.c:106:20: warning[-Wunused-variable]: ‘lxsession_clipboard_option_properties’ defined but not used
#  106 | static GParamSpec* lxsession_clipboard_option_properties[LXSESSION_CLIPBOARD_OPTION_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  104|   	LXSESSION_CLIPBOARD_OPTION_NUM_PROPERTIES
#  105|   };
#  106|-> static GParamSpec* lxsession_clipboard_option_properties[LXSESSION_CLIPBOARD_OPTION_NUM_PROPERTIES];
#  107|   
#  108|   #define LXSESSION_TYPE_UPSTART_USER_SESSION_OPTION (lxsession_upstart_user_session_option_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def89]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.c:122:20: warning[-Wunused-variable]: ‘lxsession_upstart_user_session_option_properties’ defined but not used
#  122 | static GParamSpec* lxsession_upstart_user_session_option_properties[LXSESSION_UPSTART_USER_SESSION_OPTION_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  120|   	LXSESSION_UPSTART_USER_SESSION_OPTION_NUM_PROPERTIES
#  121|   };
#  122|-> static GParamSpec* lxsession_upstart_user_session_option_properties[LXSESSION_UPSTART_USER_SESSION_OPTION_NUM_PROPERTIES];
#  123|   
#  124|   #define LXSESSION_TYPE_XSETTINGS_OPTION (lxsession_xsettings_option_get_type ())

Error: COMPILER_WARNING (CWE-563): [#def90]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.c:138:20: warning[-Wunused-variable]: ‘lxsession_xsettings_option_properties’ defined but not used
#  138 | static GParamSpec* lxsession_xsettings_option_properties[LXSESSION_XSETTINGS_OPTION_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  136|   	LXSESSION_XSETTINGS_OPTION_NUM_PROPERTIES
#  137|   };
#  138|-> static GParamSpec* lxsession_xsettings_option_properties[LXSESSION_XSETTINGS_OPTION_NUM_PROPERTIES];
#  139|   
#  140|   #define LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE (lxsession_lxsession_config_key_file_get_type ())

Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.vala: scope_hint: In function ‘lxsession_keymap_option_construct’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.vala:58:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lxsession_option_construct(object_type,  config)’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.c:63:39: note: in definition of macro ‘_g_free0’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.vala:53:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.vala:28:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.vala:61:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.vala:61:2: note: in expansion of macro ‘g_return_val_if_fail’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/options.c:63:39: note: in definition of macro ‘_g_free0’
#   56|               if (config.get_item_string("Keymap", "mode", null) == "user")
#   57|               {
#   58|->                 command = create_user_mode_command(config);
#   59|               }
#   60|           }

Error: COMPILER_WARNING (CWE-563): [#def92]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/settings.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/settings.c:124:20: warning[-Wunused-variable]: ‘lxsession_razor_qt_config_key_file_properties’ defined but not used
#  124 | static GParamSpec* lxsession_razor_qt_config_key_file_properties[LXSESSION_RAZOR_QT_CONFIG_KEY_FILE_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  122|   	LXSESSION_RAZOR_QT_CONFIG_KEY_FILE_NUM_PROPERTIES
#  123|   };
#  124|-> static GParamSpec* lxsession_razor_qt_config_key_file_properties[LXSESSION_RAZOR_QT_CONFIG_KEY_FILE_NUM_PROPERTIES];
#  125|   
#  126|   struct _LxsessionLxsessionConfig {

Error: COMPILER_WARNING (CWE-704): [#def93]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/settings.vala: scope_hint: In function ‘lxsession_lxsession_config_set_session_name’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/settings.vala:28:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   26|   
#   27|           /* Session identification */
#   28|->         public string session_name { get; set; default = "LXDE";}
#   29|           public string desktop_env_name { get; set; default = "LXDE";}
#   30|   

Error: COMPILER_WARNING (CWE-704): [#def94]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/settings.vala: scope_hint: In function ‘lxsession_lxsession_config_set_desktop_env_name’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/settings.vala:29:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   27|           /* Session identification */
#   28|           public string session_name { get; set; default = "LXDE";}
#   29|->         public string desktop_env_name { get; set; default = "LXDE";}
#   30|   
#   31|           /* Settings db */

Error: COMPILER_WARNING (CWE-704): [#def95]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/settings.vala: scope_hint: In function ‘lxsession_lxsession_config_key_file_set_desktop_config_path’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/settings.vala:423:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  421|       /* Settings locations */
#  422|       public KeyFile kf = new KeyFile();
#  423|->     public string desktop_config_path { get; set; default = null;}
#  424|       public string desktop_config_home_path { get; set; default = null;}
#  425|       public GLib.File desktop_file ;

Error: COMPILER_WARNING (CWE-704): [#def96]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/settings.vala: scope_hint: In function ‘lxsession_lxsession_config_key_file_set_desktop_config_home_path’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/settings.vala:424:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  422|       public KeyFile kf = new KeyFile();
#  423|       public string desktop_config_path { get; set; default = null;}
#  424|->     public string desktop_config_home_path { get; set; default = null;}
#  425|       public GLib.File desktop_file ;
#  426|       public GLib.File home_desktop_file ;

Error: COMPILER_WARNING (CWE-563): [#def97]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/utils.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/utils.c:68:20: warning[-Wunused-variable]: ‘lxsession_lx_signals_properties’ defined but not used
#   68 | static GParamSpec* lxsession_lx_signals_properties[LXSESSION_LX_SIGNALS_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   66|   	LXSESSION_LX_SIGNALS_NUM_PROPERTIES
#   67|   };
#   68|-> static GParamSpec* lxsession_lx_signals_properties[LXSESSION_LX_SIGNALS_NUM_PROPERTIES];
#   69|   enum  {
#   70|   	LXSESSION_LX_SIGNALS_UPDATE_WINDOW_MANAGER_SIGNAL,

Error: COMPILER_WARNING (CWE-843): [#def98]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/utils.vala: scope_hint: In function ‘lxsession_get_config_path’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsession/utils.vala:73:19: warning[-Wincompatible-pointer-types]: assignment to ‘gchar **’ {aka ‘char **’} from incompatible pointer type ‘const gchar * const*’ {aka ‘const char * const*’}
#   73 |         string[] system_config_dirs = Environment.get_system_config_dirs ();
#      |                   ^
#   71|       else
#   72|       {
#   73|->         string[] system_config_dirs = Environment.get_system_config_dirs ();
#   74|           string config_system_location = null;
#   75|           string path_system_config_file = null;

Error: COMPILER_WARNING (CWE-563): [#def99]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsettings-daemon/main.c:61:20: warning[-Wunused-variable]: ‘main_properties’ defined but not used
#   61 | static GParamSpec* main_properties[MAIN_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~
#   59|   	MAIN_NUM_PROPERTIES
#   60|   };
#   61|-> static GParamSpec* main_properties[MAIN_NUM_PROPERTIES];
#   62|   #define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
#   63|   #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

Error: COMPILER_WARNING: [#def100]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsettings-daemon/main.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsettings-daemon/main.c:89:27: warning[-Wunused-const-variable=]: ‘MAIN_option_entries’ defined but not used
#   89 | static const GOptionEntry MAIN_option_entries[3] = {{"file", 'f', (gint) 0, G_OPTION_ARG_STRING, &main_file, "path of the configuration file", "NAME"}, {"persistent", 'p', (gint) 0, G_OPTION_ARG_NONE, &main_persistent, "reload configuration on file change", NULL}, {NULL}};
#      |                           ^~~~~~~~~~~~~~~~~~~
#   87|   static GType main_get_type_once (void);
#   88|   
#   89|-> static const GOptionEntry MAIN_option_entries[3] = {{"file", 'f', (gint) 0, G_OPTION_ARG_STRING, &main_file, "path of the configuration file", "NAME"}, {"persistent", 'p', (gint) 0, G_OPTION_ARG_NONE, &main_persistent, "reload configuration on file change", NULL}, {NULL}};
#   90|   
#   91|   static gint

Error: COMPILER_WARNING (CWE-563): [#def101]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsettings-daemon/settings-daemon.c: scope_hint: In function ‘merge_xrdb’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsettings-daemon/settings-daemon.c:66:23: warning[-Wunused-but-set-variable]: variable ‘w’ set but not used
#   66 |     int stdi, status, w;
#      |                       ^
#   64|       gchar* argv[] = { "xrdb", "-merge", "-", NULL };
#   65|       GPid pid;
#   66|->     int stdi, status, w;
#   67|       if( g_spawn_async_with_pipes(NULL, argv, NULL, G_SPAWN_SEARCH_PATH,
#   68|                           NULL, NULL, &pid, &stdi, NULL, NULL, NULL ) )

Error: COMPILER_WARNING (CWE-563): [#def102]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsettings-daemon/settings-daemon.c: scope_hint: In function ‘create_xsettings_managers’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsettings-daemon/settings-daemon.c:268:25: warning[-Wunused-but-set-variable]: variable ‘screen’ set but not used
#  268 |                 Screen *screen;
#      |                         ^~~~~~
#  266|   	for( i = 0; i < n_screens; ++i )
#  267|   	{
#  268|-> 		Screen *screen;
#  269|   		screen = ScreenOfDisplay( dpy, i );
#  270|   		managers [i] = xsettings_manager_new ( dpy, i, terminate_cb, &terminated);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def103]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsettings-daemon/xsettings-common.c: scope_hint: In function ‘xsettings_list_free’
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/lxsettings-daemon/xsettings-common.c:162:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*list.next’
#  160|     while (list)
#  161|       {
#  162|->       XSettingsList *next = list->next;
#  163|   
#  164|         xsettings_setting_free (list->setting);

Error: COMPILER_WARNING (CWE-563): [#def104]
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/xdg-autostart/main.c: scope_hint: At top level
lxsession-0.5.5_20240821git95e902d7-build/lxsession-0.5.5-20240821git95e902d7/lxsession/xdg-autostart/main.c:61:20: warning[-Wunused-variable]: ‘lxsession_main_properties’ defined but not used
#   61 | static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
#   59|   	LXSESSION_MAIN_NUM_PROPERTIES
#   60|   };
#   61|-> static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
#   62|   #define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
#   63|   #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-226.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelxsession-0.5.5^20240821git95e902d7-1.fc42
store-results-to/tmp/tmpib3e0a_m/lxsession-0.5.5^20240821git95e902d7-1.fc42.tar.xz
time-created2024-11-13 02:00:12
time-finished2024-11-13 02:02:40
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpib3e0a_m/lxsession-0.5.5^20240821git95e902d7-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpib3e0a_m/lxsession-0.5.5^20240821git95e902d7-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9